import Mock, { Random } from "mockjs";
Mock.mock("/api/AlgoUnit/GetList", "get", () => {

  const result = Mock.mock({
    "data|20": [{
      "Id|+1": "@guid",// Random.guid(),
      "Name": "@cword(3)",
      "In|0-1": ["@guid",],
      "Out|0-2": ["@guid",],
      "Group|1": ["Group1", "Group2", "Group3"],
    }]
  });
  return result.data.filter(a => a.In || a.Out);
});
